﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace ProjectCodeS.Models
{
    public class TicketItem
    {
        public int Id { get; set; }
        [Required]
        public string Name { get; set; }

        [Required]
        [DataType(DataType.Currency)]
        [DisplayFormat(DataFormatString = "{0:C}")]
        public double Price { get; set; }
        
        public int TicketId { get; set; }
        public virtual Ticket Ticket { get; set; }

        public int ItemId { get; set; }
        public virtual Item Item { get; set; }

        public virtual ICollection<ItemColor> Colors { get; set; }

        public virtual ICollection<ItemTexture> Textures { get; set; }
    }
}